package com.wtwd.wtwddevice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.wtwddevice.model.entity.SetHeartRateWarning;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SetHeartRateWarningMapper extends BaseMapper<SetHeartRateWarning> {
    SetHeartRateWarning selectSetHeartRateWarningByDeviceId(@Param("deviceId") Long deviceId);

    int insertSetHeartRateWarning(@Param("setHeartRateWarning") SetHeartRateWarning setHeartRateWarning);

    int updateSetHeartRateWarning(@Param("setHeartRateWarning") SetHeartRateWarning setHeartRateWarning);

    int editState(@Param("deviceId") Long deviceId, @Param("number") String number, @Param("state") int state);
}
